list = [1, 2, 3, 4]
it = iter(list)
for i in it:
    print(i, end=" ")